package com.ikingtech.platform.service.system.dept.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ikingtech.framework.sdk.data.entity.SortEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author tie yan
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("department")
public class DepartmentDO extends SortEntity implements Serializable {

	@Serial
    private static final long serialVersionUID = -7628716592427134884L;

	@TableField("full_path")
	private String fullPath;

	@TableField("parent_id")
	private String parentId;

	@TableField("tenant_code")
	private String tenantCode;

	@TableField("name")
	private String name;

	@TableField("org_id")
	private String orgId;

	@TableField("manager_id")
	private String managerId;

	@TableField("phone")
	private String phone;

	@TableField("default_flag")
	private Boolean defaultFlag;

	@TableLogic
	@TableField("del_flag")
	private Boolean delFlag;
}
